package com.sxx.mallcart.feign;

import com.sxx.commons.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Auther: sunxx
 * @Date: 2024/9/2 - 09 - 02 - 16:03
 * @Description: com.sxx.mallcart.feign
 * @version: 1.0
 */
@FeignClient("mall-product")
public interface ProductFeignService {

    @RequestMapping("product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);

    @GetMapping("product/skuinfo/saleAttrs/{skuId}")
    public List<String> getSkuSaleAttrs(@PathVariable("skuId")Long skuId);
}
